﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CustomsDocumentOA.Project.CusDocument
{
    //*********************************************
    //
    //数据表（CDOA_Customer）：派送工单表
    //
    //作者：董力
    //
    //日期（CreateDate）：2021-03-15
    //
    //*********************************************
    [Table("CDOA_WorkOrder")]
    public class CDOA_WorkOrder : Entity<Guid>, IHasCreationTime, ICreationAudited, IModificationAudited
    {
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 工单创建日期
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 预计完成时间
        /// </summary>
        public DateTime? ExpectedTime { get; set; }
        /// <summary>
        /// 工单截止日期
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        public string WorkOrderNo { get; set; }
        /// <summary>
        /// 工单标题
        /// </summary>
        [MaxLength(200)]
        public string Title { get; set; }
        /// <summary>
        /// 工单备注
        /// </summary>
        [MaxLength(500)]
        public string Memo { get; set; }
        /// <summary>
        /// 指派人
        /// </summary>
        [MaxLength(50)]
        public string Assignment { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        [MaxLength(50)]
        public string CustomName { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        [MaxLength(50)]
        public string BusinessManager { get; set; }
        /// <summary>
        /// 是否作废,true代表作废;false代表未作废
        /// </summary>
        public bool IsCancel { get; set; } = false;
        /// <summary>
        /// 工单状态,0进行中;1作废;2已完成
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        [MaxLength(50)]
        public string Contact { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>
        public long CustomId { get; set; }
        /// <summary>
        /// 客户明细Id
        /// </summary>
        public long CustomDetailId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? dateTime { get; set; }
    }
}
